import type { BaseTableConfig } from '@/components/base-ui/base-table/type';
import { widthLevel2, widthLevel3, widthLevel1, thWordLength4, thWordMini } from '@/config';

export const tableConfig: BaseTableConfig = {
    items: [
        {
            modelKey: 'itemCode',
            columnProps: {
                label: '物料编码',
                width: widthLevel2
            }
        },
        {
            modelKey: 'itemName',
            columnProps: {
                label: '物料名称',
                width: widthLevel2
            }
        },
        {
            modelKey: 'itemType',
            columnProps: {
                label: '物料分类',
                width: thWordLength4
            }
        },
        {
            modelKey: 'supplierCode',
            columnProps: {
                label: '供应商编码',
                width: widthLevel2
            }
        },
        {
            modelKey: 'supplierName',
            columnProps: {
                label: '供应商名称',
                width: widthLevel2
            }
        },
        {
            modelKey: 'specification',
            columnProps: {
                label: '规格',
                width: widthLevel3
            }
        },
        {
            modelKey: 'unit',
            columnProps: {
                label: '生产单位',
                width: thWordLength4
            }
        },
        {
            modelKey: 'quantity',
            columnProps: {
                label: '数量',
                width: thWordMini
            }
        },
        {
            modelKey: 'demandPeriod',
            columnProps: {
                label: '需求日期',
                width: widthLevel2
            }
        },
        {
            modelKey: 'proposedPurchaseDate',
            columnProps: {
                label: '建议采购日期',
                width: widthLevel2
            }
        },
        {
            modelKey: 'procurementLeadTime',
            columnProps: {
                label: '预计到货日期',
                width: widthLevel2
            }
        },
        {
            modelKey: 'createTime',
            columnProps: {
                label: '创建时间',
                width: widthLevel1
            }
        }
    ],
    unAction: true,
    unSelection: true
};
